<admintpl file="header" />
</head>
<body>
<div class="wrap" style="padding-bottom: 0px">
    总数：{$total_count}单
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>用户电话</th>
                <th>{:L('ORDER_NUMBER')}</th>
                <th>转单时间</th>
                <th>原跑客姓名</th>
                <th>原跑客电话</th>
                <th>新跑客姓名</th>
                <th>新跑客电话</th>
                <th>转发端</th>
                <th>操作人</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $is_reservations=array("0"=>'否','1'=>'是');
                $trun_client=array("1"=>'手机端','2'=>'平台');
                console.log($lists);
            </php>
            <foreach name="lists" item="vo" key="k">
                <php>
                    $is_show_return_money = is_show_return_money($vo['order_id']);
                </php>
                <tr>
                    <td align="center">{$k+1}</td>
                    <td>{$vo.user_id|getUserMobile}</td>
                    <td>{$vo.order_number}</td>
                    <td><span style="font-weight: 800;color: green">{$vo.turn_time|tranTime}</span></td>
                    <td>{$vo['old_dispatch_id']|getDispatchName}</td>
                    <td>{$vo['old_dispatch_id']|getDispatchMobile}</td>
                    <td>{$vo['new_dispatch_id']|getDispatchName}</td>
                    <td>{$vo['new_dispatch_id']|getDispatchMobile}</td>
                    <td>{$trun_client[$vo[trun_client]]}</td>
                    <td>{$vo[operator_id]|get_turn_operator=$vo[trun_client]}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($lists)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
    setCookie('refersh_time', 0);
    function refersh_window() {
        var refersh_time = getCookie('refersh_time');
        if (refersh_time == 1) {
            window.location = "{:U('Bdrunpeople/trun_list',$formget)}";
        }
    }
    setInterval(function() {
        refersh_window();
    }, 2000);
</script>
</body>
</html>